<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::swap_elements类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1swap__elements.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="classmets_1_1swap__elements-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::swap_elements类 参考<div class="ingroups"><a class="el" href="group__model.html">Model</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>A <a class="el" href="classmets_1_1mana__move.html" title="A Mana Move is a move that can be automatically made tabu by the mets::simple_tabu_list.">mets::mana_move</a> that swaps two elements in a <a class="el" href="classmets_1_1permutation__problem.html" title="An abstract permutation problem.">mets::permutation_problem</a>.  
 <a href="classmets_1_1swap__elements.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="model_8hh_source.html">model.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::swap_elements 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1swap__elements.png" usemap="#mets::swap_5Felements_map" alt=""/>
  <map id="mets::swap_5Felements_map" name="mets::swap_5Felements_map">
<area href="classmets_1_1mana__move.html" title="A Mana Move is a move that can be automatically made tabu by the mets::simple_tabu_list." alt="mets::mana_move" shape="rect" coords="138,56,266,80"/>
<area href="classmets_1_1move.html" title="Move to be operated on a feasible solution." alt="mets::move" shape="rect" coords="0,0,128,24"/>
<area href="classmets_1_1clonable.html" title="An interface for prototype objects." alt="mets::clonable" shape="rect" coords="138,0,266,24"/>
<area href="classmets_1_1hashable.html" title="An interface for hashable objects." alt="mets::hashable" shape="rect" coords="276,0,404,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9d045674248a1409743b3fa558391a6a"><td class="memItemLeft" align="right" valign="top"><a id="a9d045674248a1409743b3fa558391a6a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#a9d045674248a1409743b3fa558391a6a">swap_elements</a> (int from, int to)</td></tr>
<tr class="memdesc:a9d045674248a1409743b3fa558391a6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">A move that swaps from and to. <br /></td></tr>
<tr class="separator:a9d045674248a1409743b3fa558391a6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc881d41079ab026f69411a05db183e2"><td class="memItemLeft" align="right" valign="top"><a id="abc881d41079ab026f69411a05db183e2"></a>
gol_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#abc881d41079ab026f69411a05db183e2">evaluate</a> (const <a class="el" href="classmets_1_1feasible__solution.html">mets::feasible_solution</a> &amp;s) const</td></tr>
<tr class="memdesc:abc881d41079ab026f69411a05db183e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual method that applies the move on a point <br /></td></tr>
<tr class="separator:abc881d41079ab026f69411a05db183e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dc625e7f5b1557c118f79e7ac521485"><td class="memItemLeft" align="right" valign="top"><a id="a2dc625e7f5b1557c118f79e7ac521485"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#a2dc625e7f5b1557c118f79e7ac521485">apply</a> (<a class="el" href="classmets_1_1feasible__solution.html">mets::feasible_solution</a> &amp;s) const</td></tr>
<tr class="memdesc:a2dc625e7f5b1557c118f79e7ac521485"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual method that applies the move on a point <br /></td></tr>
<tr class="separator:a2dc625e7f5b1557c118f79e7ac521485"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bf3daa4735c34a3f0947ae186b18083"><td class="memItemLeft" align="right" valign="top"><a id="a8bf3daa4735c34a3f0947ae186b18083"></a>
<a class="el" href="classmets_1_1clonable.html">clonable</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#a8bf3daa4735c34a3f0947ae186b18083">clone</a> () const</td></tr>
<tr class="memdesc:a8bf3daa4735c34a3f0947ae186b18083"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clones this move (so that the tabu list can store it) <br /></td></tr>
<tr class="separator:a8bf3daa4735c34a3f0947ae186b18083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45079b62befcdaa317e3942ad1756960"><td class="memItemLeft" align="right" valign="top"><a id="a45079b62befcdaa317e3942ad1756960"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#a45079b62befcdaa317e3942ad1756960">hash</a> () const</td></tr>
<tr class="memdesc:a45079b62befcdaa317e3942ad1756960"><td class="mdescLeft">&#160;</td><td class="mdescRight">An hash function used by the tabu list (the hash value is used to insert the move in an hash set). <br /></td></tr>
<tr class="separator:a45079b62befcdaa317e3942ad1756960"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6262642f3c5802d86fc2b4dc5d2ad6b"><td class="memItemLeft" align="right" valign="top"><a id="ae6262642f3c5802d86fc2b4dc5d2ad6b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#ae6262642f3c5802d86fc2b4dc5d2ad6b">operator==</a> (const <a class="el" href="classmets_1_1mana__move.html">mets::mana_move</a> &amp;o) const</td></tr>
<tr class="memdesc:ae6262642f3c5802d86fc2b4dc5d2ad6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparison operator used to tell if this move is equal to a move in the simple tabu list move set. <br /></td></tr>
<tr class="separator:ae6262642f3c5802d86fc2b4dc5d2ad6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f4f4e09d0bbd6f282eb433844ecc5a0"><td class="memItemLeft" align="right" valign="top"><a id="a0f4f4e09d0bbd6f282eb433844ecc5a0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#a0f4f4e09d0bbd6f282eb433844ecc5a0">change</a> (int from, int to)</td></tr>
<tr class="memdesc:a0f4f4e09d0bbd6f282eb433844ecc5a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify this swap move. <br /></td></tr>
<tr class="separator:a0f4f4e09d0bbd6f282eb433844ecc5a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1mana__move"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1mana__move')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1mana__move.html">mets::mana_move</a></td></tr>
<tr class="memitem:a0faf5590c15ae4ed13470033fb7ed000 inherit pub_methods_classmets_1_1mana__move"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classmets_1_1mana__move.html">mana_move</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1mana__move.html#a0faf5590c15ae4ed13470033fb7ed000">opposite_of</a> () const</td></tr>
<tr class="memdesc:a0faf5590c15ae4ed13470033fb7ed000 inherit pub_methods_classmets_1_1mana__move"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and return a new move that is the reverse of this one  <a href="classmets_1_1mana__move.html#a0faf5590c15ae4ed13470033fb7ed000">更多...</a><br /></td></tr>
<tr class="separator:a0faf5590c15ae4ed13470033fb7ed000 inherit pub_methods_classmets_1_1mana__move"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:ad0b091837bf8081d2288a354b1cdb88e"><td class="memItemLeft" align="right" valign="top"><a id="ad0b091837bf8081d2288a354b1cdb88e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#ad0b091837bf8081d2288a354b1cdb88e">p1</a></td></tr>
<tr class="memdesc:ad0b091837bf8081d2288a354b1cdb88e"><td class="mdescLeft">&#160;</td><td class="mdescRight">the first element to swap <br /></td></tr>
<tr class="separator:ad0b091837bf8081d2288a354b1cdb88e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af363135d28b4924d8b5efc48d7d2cffc"><td class="memItemLeft" align="right" valign="top"><a id="af363135d28b4924d8b5efc48d7d2cffc"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1swap__elements.html#af363135d28b4924d8b5efc48d7d2cffc">p2</a></td></tr>
<tr class="memdesc:af363135d28b4924d8b5efc48d7d2cffc"><td class="mdescLeft">&#160;</td><td class="mdescRight">the second element to swap <br /></td></tr>
<tr class="separator:af363135d28b4924d8b5efc48d7d2cffc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:adb2f69888eeeaa8a82fb32d4e7c879e9"><td class="memTemplParams" colspan="2"><a id="adb2f69888eeeaa8a82fb32d4e7c879e9"></a>
template&lt;typename &gt; </td></tr>
<tr class="memitem:adb2f69888eeeaa8a82fb32d4e7c879e9"><td class="memTemplItemLeft" align="right" valign="top">class&#160;</td><td class="memTemplItemRight" valign="bottom"><b>swap_neighborhood</b></td></tr>
<tr class="separator:adb2f69888eeeaa8a82fb32d4e7c879e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>A <a class="el" href="classmets_1_1mana__move.html" title="A Mana Move is a move that can be automatically made tabu by the mets::simple_tabu_list.">mets::mana_move</a> that swaps two elements in a <a class="el" href="classmets_1_1permutation__problem.html" title="An abstract permutation problem.">mets::permutation_problem</a>. </p>
<p>Each instance swaps two specific objects.</p>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="classmets_1_1permutation__problem.html" title="An abstract permutation problem.">mets::permutation_problem</a>, <a class="el" href="classmets_1_1mana__move.html" title="A Mana Move is a move that can be automatically made tabu by the mets::simple_tabu_list.">mets::mana_move</a> </dd></dl>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="model_8hh_source.html">model.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1swap__elements.html">swap_elements</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
